<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Level extends Model
{
    //
    protected $fillable = ['l_code', 'name',  'sort'];
    public function teachers(): \Illuminate\Database\Eloquent\Relations\belongsToMany
    {
        return $this->belongsToMany(Teacher::class, 'tl_code','tl_code');
    }
}
